package com.woniuxy.service;

import com.woniuxy.pojo.MerchantUsers;
import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;
@LocalTCC
public interface SeateService {
    //尝试
    @TwoPhaseBusinessAction(name = "zz",commitMethod = "Confirm",rollbackMethod = "Rollback")
    void updatebalence(@BusinessActionContextParameter(paramName = "user") MerchantUsers merchantUsers);
    //确认
    Boolean Confirm(BusinessActionContext context);
    //回调
    Boolean Rollback(BusinessActionContext context);
}
